var token = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiJ1MjAxOTA3MDEwMDAwMDAiLCJleHAiOjE1NjgwMjE5OTIsImRldmljZUlkIjoiYWFhIn0.MrR5TDKW0fg-aO8Yb9KH5ZlrumdbFlKBPivmY3o9mXI';
$(document).ready(function () {
    $.ajax({
        url: "login?token=" + token,
        async: false,
        success: function (data) {
            console.log(data);
            $('#avatar').attr("src", data.avatar);
            $('#nickName').html(data.nickName);
        },
    });



    $('#sub').click(function () {
        $("form[name='auth']").submit();
    });
});
